#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

#include "tool_log.h"
#include "thread_listen.h"

int deamon_main(int argc, char **argv)
{
	logoutf("hello, i am deamon process, pid = %d", getpid());

	listen_init(50001);

	while(1)
	{
		sleep(2);
	}
	return EXIT_SUCCESS;
}